import {
  get,
  post
} from "../api"

//获取
export const getInfo = data => get('/bmj-api/api/ums/umsUsers/getMemberServiceInfo', data)

//获取消息类型
export const getMsgType = data => get('/bmj-api/api/ums/umsMessage/getMessageTypeAll', data)

//消息列表
export const getMsgList = data => get('/bmj-api/api/ums/umsMessage/list', data)

//名片列表
export const getCardList = data => get("/bmj-api/api/ums/umsBusinessCard/queryMyBusinessCardCollection", data)

//部门关注
export const deptFollowList = data => get('/bmj-api/api/pms/pmsGovernmentConcerns/list', data)

//企业关注
export const comFollowList = data => get('/bmj-api/api/cms/cmsCompanyAttention/getMyCompanyAttention', data)

//认领企业
export const comList = data => get('/bmj-api/api/cms/cmsCompanyClaim/list', data)

//订单
export const orderList = data => get('/bmj-api/api/ums/umsUsers/getMyOrderInfo', data)

//谁看了我
export const visitList = data => get('/bmj-api/api/ums/umsVisitor/list', data)

//看我最多
export const visitMostList = data => get('/bmj-api/api/ums/umsVisitor/queryWhoLookedAtMeMost', data)

//统计接口
export const visitSummary = data => get('/bmj-api/api/ums/umsArticleShare/getVisitorsTotal', data)

//用户信息
export const userInfo = data => get('/bmj-api/api/userInfo', data)

//获取验证码
export const getCode = data => get('/bmj-api/api/ums/umsUsers/sendVerificationCode', data)


//修改邮箱
export const changeEmail = (newEmail) => post(`/bmj-api/api/ums/umsUsers/updateEmail?newEmail=${newEmail}`)

//修改密码
export const changePwd = (oldPassWord, newPassWord) => post(`/bmj-api/api/ums/umsUsers/updatePassWord?oldPassWord=${oldPassWord}&newPassWord=${newPassWord}`)

//关注公司
export const companyAttention = (id) => post(`/bmj-api/api/cms/cmsCompany/attentionCompany?id=${id}`)

//取消关注公司
export const companyAttentionCancel = (id) => post(`/bmj-api/api/cms/cmsCompany/cancelAttentionCompany?id=${id}`)